package com.lanxiao.cloud.modules.gateway.route.application.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;

/**
 * @author ：qiaoliang
 * @date ：2021-08-20
 */
@ApiModel("网关新增请求模型")
public class GatewayRouteCmdAdd {
  @ApiModelProperty(value = "服务ID")
  @NotNull(message = "请填写服务ID.")
  private String serviceId;
  @ApiModelProperty(value = "转发地址")
  @NotNull(message = "请填写转发地址.")
  private String uri;
  @ApiModelProperty(value = "访问路径")
  private String predicates;
  @ApiModelProperty(value = "过滤")
  private String filters;
  @ApiModelProperty(value = "顺序")
  private int sort;
  @ApiModelProperty(value = "备注")
  private String remark;

  public GatewayRouteCmdAdd() {
  }

  public GatewayRouteCmdAdd(String serviceId, String uri, String predicates,
      String filters, int sort, String remark) {
    this.serviceId = serviceId;
    this.uri = uri;
    this.predicates = predicates;
    this.filters = filters;
    this.sort = sort;
    this.remark = remark;
  }

  public String getServiceId() {
    return serviceId;
  }

  public String getUri() {
    return uri;
  }

  public String getPredicates() {
    return predicates;
  }

  public String getFilters() {
    return filters;
  }

  public int getSort() {
    return sort;
  }

  public String getRemark() {
    return remark;
  }

}
